cmake_minimum_required(VERSION 3.8)

project(T3SR CXX)

if (MSVC) 
    set(CMAKE_CXX_FLAGS /source-charset:utf-8)
endif()
enable_testing()

set(CMAKE_CXX_STANDARD 17)
set(STB_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rdlib/stb-master)
set(IMGUI_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/3rdlib/imgui)

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/3rdlib)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/test)
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/src)

if (MSVC)
    set_target_properties(T3SRLib PROPERTIES COMPILE_FLAGS "/EHsc")
endif()